<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .parent {
            overflow: hidden;
            width: 1366px;
            height: 600px;
            background: url(./images/bg.jpg) no-repeat;
        }
        .children {
            width: 50%;
            height: 600px;
            background-color: pink;
            float: left;
            transition: all .9s;
        }
        .parent div:first-child {
            background: url(./images/fm.jpg) no-repeat;
        }
        .parent div:last-child {
            background: url(./images/fm.jpg) no-repeat;
            background-position: right 0;
        }
        .parent:hover .children:first-child {
            transform: translateX(-100%);
        }
        .parent:hover .children:last-child {
            transform: translateX(100%);
        }
    </style>
</head>
<body>
    <div class="parent">
        <div class="children"></div>
        <div class="children"></div>
    </div>
</body>
</html>